import { lazy } from 'react';
const OrderManage = lazy(() => import('@/pages/OrderCenter/Manage/index'));
const OrderEvaluation = lazy(() => import('@/pages/OrderCenter/Evaluation/index'));

const OrderRouters = [
  {
    path: '/orderCenter', // * 后面有子路由 此时子路由不能加 /
    meta: { name: '订单中心' },
    children: [
      {
        path: 'manage',
        element: <OrderManage />,
        meta: { name: '订单管理' },
      },
      {
        path: 'evaluation',
        element: <OrderEvaluation />,
        meta: { name: '订单评价' },
      },
    ],
  },
];
export default OrderRouters;
